1.建立Cluster群組:
這樣就會產生出 /etc/cluster/cluster.conf。注意一下,cluster name長度限制為15個字元。
2.加入成員(nodes):
#ccs -h lab01 --addnode lab01
#ccs -h lab01 --addnode lab02
3.建立Fence Device:
#ccs -h lab01 --addfencedev fence1 agent=fence_imm ipaddr=192.168.11.21 login=op passwd=op
#ccs -h lab02 --addfencedev fence2 agent=fence_imm ipaddr=192.168.11.22 login=op passwd=op
4.建立Method:
#ccs -h lab01 --addmethod Method lab01
#ccs -h lab02 --addmethod Method lab02
5.配置Node的Fence Device:
#ccs -h lab01 --addfenceinst fence1 lab01 Method
#ccs -h lab02 --addfenceinst fence2 lab02 Method